<%@ page contentType="text/html; charset=UTF-8" %>
<html>
<head>
<title>批量导入筛选产品信息</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<%@ include file="../common.jsp" %>
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<%
String tSuccess = (String)request.getAttribute("success");
String tFail = (String)request.getAttribute("fail");

String tFailFileName = (String)request.getAttribute("failfilename");
if (tFailFileName ==  null) tFailFileName = "0";

String tDownPath = GSSystemConfigurator.getParam("gs.down.savepath");
if (tDownPath == null) tDownPath = "";

%>
<script language="JavaScript">
 function downFile(){
 	down.action = "<%= response.encodeURL(request.getContextPath() + "/A401503.do") %>?filename=<%=tFailFileName%>";
 	down.submit();
 }
 function backToView(){
    document.down.action = "<%= response.encodeURL(request.getContextPath() + "/A401501.do") %>";
    document.down.submit();
 }
 
</script>
</HEAD>
<body BGCOLOR="#f2f2f2"	text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<form name="down" method="post" action="<%= response.encodeURL(request.getContextPath() + "/A401501.do") %>">
<!--
<input type="hidden" name="succnum" value="<%=tSuccess %>">
<input type="hidden" name="failnum" value="<%=tFail %>">
-->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="20"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="1">
        <tr height="20">
          <td height="20" width="1" class="mtxt_black">&nbsp;</td>
          <td height="30" width="758" class="mtxt_black">批量导入筛选产品信息</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bg_line" height="2"></td>
  </tr>
</table>
<br>
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
            <td> 
                <table class=bg_table id=tableId	cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_row_odd" height=20> 
                        <td class=top align=middle width=30%> 
                            <div align="right" class="txt_content" >筛选产品总数</div>
                        </td>
                        <td class=top align=middle width=30%> 
                            <div align="left" class="txt_content"><%=( Integer.parseInt(tSuccess) + Integer.parseInt(tFail) )%> 笔</div>
                        </td>
                    </tr>
                    <tr class="bg_row_even" height=20>
                        <td class=top align=middle width=30%> 
                            <div align="right" class="txt_content" >导入符合条件的筛选产品信息数量</div>
                        </td>
                        <td class=top align=middle width=30%> 
                            <div align="left" class="txt_content" ><%=tSuccess%> 笔</div>
                        </td>
                    </tr>
                    <tr class="bg_row_odd" height=20 width=30%>
                        <td class=top align=middle> 
                            <div align="right" class="txt_content" >未导入的不符合条件的筛选产品信息数量</div>
                        </td>
                        <td class=top align=middle width=30%> 
                            <div align="left" class="txt_content"><%=tFail%> 笔</div>
                        </td>
                    </tr>
                    <%
                    if( tFail != null && Integer.parseInt(tFail) > 0 )
                    {
                    	if( !tFailFileName.equals("0") && !"".equals(tDownPath) )
                    	{%>
                    		<tr class="bg_row_even" height=20 width=60%>
                        		<td class=top align=middle colspan=2> 
                            		<div align="center" class="txt_content">点击&nbsp;<input type="button" class="kuang" value="下载" onclick="downFile();return false;">&nbsp;得到不符合条件的筛选产品详细信息文件<font color=red>(注：每行记录最后附上不符合的原因)</font></div>
                        		</td>
                    		</tr>
                    	<%} 
                    }
                    %>                    
                    </tbody> 
                </table>
            </td>
        </tr>
    </table>
    <p align="center"> 
   		<input type="button" class="kuang" value="返回" onclick="backToView();return false"/>
   	</p>
</form>
</body>
</html>